package com.qf.mybatisplus.bean.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author 12136
 * @version 1.0
 * @description: TODO
 * @date 2022/2/18 14:17
 */
@Data
public class RegistVo {


    @ApiModelProperty(value = "用户唯一标识")
    private Integer id;

    /**
     * 姓名
     */
    @ApiModelProperty(value = "用户姓名")
    private String name;

    @ApiModelProperty(value = "用户密码")
    private String password;

    @ApiModelProperty(value = "用户性别")
    private String sex;

    /**
     * 年龄
     */
    private Integer age;

    /**
     * 邮箱
     */
    private String email;

    private String phone;

    private String pagePicture;

    private String mesCode;


    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd")// 添加时 赋值
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createTime;


    //@TableField(fill = FieldFill.UPDATE)      修改时 赋值
    @TableField(fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd")//  添加  和  修改 都会赋值
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    private Integer version;

    private Integer deleted;


}
